bd49bcc84e1dec3d20b57e970c293a459524d2e4,xwiki-platform-core/xwiki-platform-rest/xwiki-platform-rest-server/src/main/java/org/xwiki/rest/resources/BaseAttachmentsResource.java,BaseAttachmentsResource,getAttachments,#String#String#String#String#String#String#number#number#,101
Before Change
attachment.setSize(xwikiAttachment.getFilesize());
attachment.setMimeType(mimeType);
attachment.setAuthor(xwikiAttachment.getAuthor());
attachment.setAuthorName(Utils.getAuthorName(xwikiAttachment.getAuthor(), componentManager));
Calendar calendar = Calendar.getInstance();
calendar.setTime(xwikiAttachment.getDate());
After Change
attachment.setSize(xwikiAttachment.getFilesize());
attachment.setMimeType(mimeType);
attachment.setAuthor(xwikiAttachment.getAuthor());
if (withPrettyNames)
attachment.setAuthorName(Utils.getAuthorName(xwikiAttachment.getAuthor(), componentManager));
Calendar calendar = Calendar.getInstance();
calendar.setTime(xwikiAttachment.getDate());